package com.family.business.custom.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.family.base.dao.BaseDao;
import com.family.business.custom.ajax.CustomJson;
import com.family.business.custom.dto.CustomDto;

@Repository("customDao")
public  class CustomDao extends BaseDao<CustomDto, Long> implements CustomIDao{

	@Override
	public List<CustomJson> listCustomByName(String cusName) {
		List<CustomJson> list = (List<CustomJson>)this.hibernateTemplate
				.find("from CustomDto where cusName like ?", "%"+cusName+"%");
		System.out.println(list.size());
		
		return list;
	}


	 
}
